#ifndef __GPTIM_H_
#define __GPTIM_H_
#include "sys.h"

bool gptimer_callback(gptimer_handle_t timer, const gptimer_alarm_event_data_t *edata, void *user_data);
void timer_init(uint32_t hz, uint64_t arr);

bool gptimer2_callback(gptimer_handle_t timer, const gptimer_alarm_event_data_t *edata, void *user_data);
void timer2_init(uint32_t hz, uint64_t arr);

bool gptimer3_callback(gptimer_handle_t timer, const gptimer_alarm_event_data_t *edata, void *user_data);
void timer3_init(uint32_t hz, uint64_t arr);

bool gptimer4_callback(gptimer_handle_t timer, const gptimer_alarm_event_data_t *edata, void *user_data);
void timer4_init(uint32_t hz, uint64_t arr);

#endif